/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.pigx.common.core.util.R;
import com.pig4cloud.pigx.order.api.entity.OrderInfo;
import com.pig4cloud.pigx.order.api.entity.PointSpuOrder;
import com.pig4cloud.pigx.order.api.vo.OrderInfoVO;
import com.pig4cloud.pigx.order.api.vo.PointSpuOrderVO;

/**
 * 积分商城订单
 *
 * @author pigx code generator
 * @date 2023-12-19 09:23:55
 */
public interface PointSpuOrderService extends IService<PointSpuOrder> {

	/**
	 * 分页获取订单数据
	 * @param page
	 * @param pointSpuOrder
	 * @return
	 */
	IPage getPage(Page page, PointSpuOrder pointSpuOrder);

	/**
	 * 根据订单号获取订单详情
	 * @param orderId
	 * @return
	 */
	PointSpuOrderVO getOrderInfoByOrderId(Long orderId);

	/**
	 * 创建积分商城订单
	 * @param pointSpuOrderVO
	 * @return
	 */
	R create(PointSpuOrderVO pointSpuOrderVO);

	/**
	 * 通过订单ID获取订单详情
	 * @param shopUserId
	 * @param orderId
	 * @return
	 */
	R getOrderInfo(Long shopUserId, Long orderId);

	/**
	 * 签收商品
	 * @param pointSpuOrder
	 * @return
	 */
	R orderSingFor(PointSpuOrder pointSpuOrder);

	/**
	 * 订单退款
	 * @param pointSpuOrder
	 * @return
	 */
	R orderRefund(PointSpuOrder pointSpuOrder);

	/**
	 * 订单退货
	 * @param pointSpuOrder
	 * @return
	 */
	R orderReturn(PointSpuOrder pointSpuOrder);

}
